﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RxxAdmin.Model.Entity;

namespace RxxAdmin.Model.ViewModels;

public class UserMenu
{
    public int Id { get; set; }
    public int ParentId { get; set; }
    /// <summary>
    /// 名字
    /// </summary>
    public string Name { get; set; }

    /// <summary>
    /// 路由路径
    /// </summary>
    public string Path { get; set; }

    /// <summary>
    /// 组件
    /// </summary>
    public string? Component { get; set; }
    public int? Status { get; set; }
    /// <summary>
    /// 
    /// </summary>
    public Meta Meta { get; set; }

    public List<UserMenu>? Children { get; set; }
}

/// <summary>
/// 
/// </summary>
public class Meta
{
    public string Title { get; set; }

    public string Icon { get; set; }
    public int Type { get; set; }
    public int Sort { get; set; }
}


public class SysUserMenuOut
{

    public string Home { get; set; }

    public List<UserMenu> Routes { get; set; }
}
